package com.example.algorithm.no0014;

import com.example.algorithm.no0014.solution.SolutionImpl;

import java.util.Arrays;

/**
 * @Description 解答测试-最长公共前缀
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

    static String[] strs = new String[]{"flower","flow","flight"};

    public static void main(String[] args) {
        System.out.println("输入数组为: " + Arrays.toString(strs));

        Solution solution = new SolutionImpl();

        System.out.println(solution.longestCommonPrefix(strs));

    }
}
